package com.cardone.platform.configuration.service;

import java.util.List;

import lombok.Getter;
import lombok.Setter;

import org.springframework.util.CollectionUtils;

import com.cardone.context.ContextHolder;
import com.cardone.platform.configuration.dao.ConfigurationDao;

/**
 * 配置服务
 *
 * @author yaohaitao
 *
 */
@Getter
@Setter
public class ConfigurationDefaultService implements ConfigurationService {
	/**
	 * 序列名称集合
	 */
	private List<String> seqNameList;

	@Override
	public void resetSeq() {
		if (CollectionUtils.isEmpty(this.seqNameList)) {
			return;
		}

		ContextHolder.getBean(ConfigurationDao.class).resetSeq(this.seqNameList);
	}
}